package top.fullj.win32;

import com.sun.jna.Structure;

/**
 * https://docs.microsoft.com/zh-cn/windows/win32/api/winbase/ns-winbase-commtimeouts
 *
 * @author bruce.wu
 * @since 2019/11/14 9:21
 */
@SuppressWarnings("SpellCheckingInspection")
@Structure.FieldOrder({
        "ReadIntervalTimeout",
        "ReadTotalTimeoutMultiplier",
        "ReadTotalTimeoutConstant",
        "WriteTotalTimeoutMultiplier",
        "WriteTotalTimeoutConstant",
})
public class COMMTIMEOUTS extends Structure {

    //in milliseconds
    public int ReadIntervalTimeout;
    //in milliseconds
    public int ReadTotalTimeoutMultiplier;
    //in milliseconds
    public int ReadTotalTimeoutConstant;
    //in milliseconds
    public int WriteTotalTimeoutMultiplier;
    //in milliseconds
    public int WriteTotalTimeoutConstant;

}
